blob: eeb173e75df8fce3f6b26007e5d8fb141e0163b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { WebsitesTable } from '@/app/(main)/websites/WebsitesTable';
import { DataGrid } from '@/components/common/DataGrid';
import { useUserWebsitesQuery } from '@/components/hooks';
export function UserWebsites({ userId }) {
const queryResult = useUserWebsitesQuery({ userId });
return (
<DataGrid query={queryResult}>
{({ data }) => (
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
)}
</DataGrid>
);
}
|